<?php

namespace IDock\Printer\Premium;

use IDock\Printer\BasePrinter;

/**
 * 询价交强险信息
 */
class PremiumFactorPrinter extends BasePrinter
{
    /**
     * 交强险因数
     * @var array $TCIFactor
     */
    public $TCIFactor = [];

    /**
     * 商业险因数
     * @var array $VCIFactor
     */
    public $VCIFactor = [];

    /**
     * 公共因数
     * @var array $ComFactor
     */
    public $ComFactor = [];


    public function TCIFactorAppend($name, $key, $value)
    {
        $this->TCIFactor[] = [
            "extKey" => $key,
            "extName" => $name,
            "extValue" => $value
        ];
    }

    public function VCIFactorAppend($name, $key, $value)
    {
        $this->VCIFactor[] = [
            "extKey" => $key,
            "extName" => $name,
            "extValue" => $value
        ];
    }

    public function ComFactorAppend($name, $key, $value)
    {
        $this->ComFactor[] = [
            "extKey" => $key,
            "extName" => $name,
            "extValue" => $value
        ];
    }
}